<?php
namespace App\Api\Requests;

use Illuminate\Validation\Rule;

class PayContactRequest extends BaseRequest{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'search_id'=> ['required'],
            'type' => ['required', Rule::in(['phone', 'email', 'qq', 'weixin'])],
        ];
    }

    public function messages(){
        return [
            'search_id.required'=> '请指定搜索id',
            'type.required'=> '请选择联系方式',
            'type.in'=> '没有此联系方式',
        ];
    }
}